package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author 港某
 * @date 2021/9/14 12:23
 */
@Controller
@RequestMapping("mvc")
public class Demo5WebMvcController {

    @RequestMapping(value = "test", method = {RequestMethod.GET})
    String test() {
        return "test.html";
    }

    @RequestMapping(value = "user", method = {RequestMethod.GET})
    String user() {
        return "user.html";
    }

}
